package com.escool.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.escool.dao.CatTipoPagoDAO;
import com.escool.model.TbPago;
import com.escool.model.TbTipoPago;
@Service
public class CatTipoPagoServiceImpl implements CatTipoPagoService {

	@Autowired
	CatTipoPagoDAO catTipoPagoDAO;

	@Transactional
	public void addTbTipoPago(TbTipoPago TbTipoPago) {
		// TODO Auto-generated method stub
		catTipoPagoDAO.addTbTipoPago(TbTipoPago);
	}

	@Transactional
	public void editTbTipoPago(TbTipoPago TbTipoPago) {
		// TODO Auto-generated method stub
		catTipoPagoDAO.editTbTipoPago(TbTipoPago);
	}

	@Transactional
	public TbTipoPago findTbTipoPago(int id) {
		// TODO Auto-generated method stub
		return catTipoPagoDAO.findTbTipoPago(id);
	}

	@Transactional
	public List<TbTipoPago> listTbTipoPago() {
		// TODO Auto-generated method stub
		return catTipoPagoDAO.listTbTipoPago();
	}

	@Transactional
	public void delTbTipoPago(int id) {
		// TODO Auto-generated method stub
		catTipoPagoDAO.delTbTipoPago(id);
	}


}
